const API_message_500 = (message = null) => {
    return {
        code: 500,
        data: null,
        msg: message,
    };
};

const API_message_200 = (data = null, message = null) => {
    return {
        code: 200,
        data: data,
        msg: message,
    };
}

const API_message_401 = (data = null, message = null) => {
    return {
        code: 401,
        data: '没有访问权限',
        msg: message
    }
}


module.exports = { API_message_200, API_message_500, API_message_401 }
